FROM anapsix/alpine-java:8_server-jre_unlimited

RUN mkdir -p /usr/local/my-app

WORKDIR /usr/local/my-app

ADD ./target/app.jar ./app.jar

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 16648

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]

CMD ["--spring.profiles.active=test"]
